package com.xindong.paking.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *  停车位
 * </p>
 *
 * @author wenbo
 * @since 2023-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_space")
public class TbSpace implements Serializable {

    private static final long serialVersionUID=1L;

    // 停车位id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 停车开始时间
    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    // 车牌号
    @TableField("license_plate_number")
    private String licensePlateNumber;

    // 充电桩（0:没有,1:有）
    @TableField("is_charging_pile")
    private Integer isChargingPile;

    // 空闲状态（0:空闲,1:有车辆）
    @TableField("is_free")
    private Integer isFree;

    // 停车场id
    @TableField("parking_id")
    private Integer parkingId;


}
